<template>
  <rx-dialog @handOk="okFun" @cancel="cancelFun">
    <a-form :form="form">
      <a-form-item style="display:none">
        <a-input v-decorator="['instId']"/>
      </a-form-item>
      <a-row>
        <a-col :span="12">
          <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="i18n('form.instNo','机构编码')">
            <span>{{mdl.instNo}}</span>
          </a-form-item>
        </a-col>
        <a-col :span="12">
          <a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" :label="i18n('form.busLiceNo','营业执照编码')">
            <span>{{mdl.busLiceNo}}</span>
          </a-form-item>
        </a-col>
      </a-row>
    </a-form>
  </rx-dialog>
</template>
<script>
  import OsInstApi from '@/api/user/org/osInst'
  import {BaseForm, RxDialog, Util} from "@lowcode/jpaas-common-lib";

  export default {
    name: 'OsInstGet',
    mixins: [BaseForm],
    components: {
      RxDialog
    },
    data() {
      return {}
    },
    methods: {
      i18n(name,text,key){
          return this.$ti18(name,text,"osInst",key);
      },
      okFun() {
        Util.closeWindow(this, "ok");
      },
      cancelFun() {
        Util.closeWindow(this, "cancel");
      },
      get(id) {
        return OsInstApi.get(id);
      }
    }
  }
</script>
